"""
@Project:p9_exe
@File:clos.py
@Author:郑凯乐
@Date:8:58
"""
def out_func(b):
    a = 10
    def inner_func():
        print(a+b)
    return inner_func()
cc = out_func(3)
# print(cc)


import time
def timeit(func):
    start = time.time()
    func()
    end = time.time()
    print(f'{func}执行时间{int(end-start)}秒')

def hello_one():
    print("开始执行了")
    time.sleep(1)

def hello_tow():
    print("我也开始执行了")
    time.sleep(3)
timeit(hello_one)
timeit(hello_tow)
